package com.lottery.htbc.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lottery.htbc.mapper.BetRecordMapper;

@Service
public class BetRecordDao {
	
	@Autowired
	private BetRecordMapper betRecordMapper;
	
	
	/**
	 * 每月的数据备份
	 */
	public void backupsTableDataByMonth(String ym){
		//修改表名
		betRecordMapper.alterTabeName(ym);
		//copy之前的表结构
		betRecordMapper.copyTabeLkie(ym);
	}

}
